package com.maybach.core.form.partner;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Created by houenxun on 16/1/14.
 */
public class PartnerForm implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    @NotBlank(message = "公司名称不能为空")
    private String corpName;
    private String corpDescription;

    private Long accountBalance;

    @NotBlank(message = "公司联系人不能为空")
    private String contactsName;

    @NotBlank(message = "公司联系电话不能为空")
    private String contactsPhone;


    private String fax;


    private String email;

    //@NotBlank(message = "公司所在城市不能为空")
    private Integer cityId;

    private String cityName;

    @NotNull(message = "公司所在城市不能为空")
    private Integer proviceId;

    @NotBlank(message="详细地址不能为空")
    private String detailAddress;
    @NotEmpty(message ="公司logo不能为空")
    private List<String> corpLogoImgs;

    public List<String> getCorpLogoImgs() {
        return corpLogoImgs;
    }

    public void setCorpLogoImgs(List<String> corpLogoImgs) {
        this.corpLogoImgs = corpLogoImgs;
    }

    @NotEmpty(message = "五证不能为空")
    private List<String> credentialsImgs;

    @NotEmpty(message = "法人身份证不能为空")
    private List<String> legalCertImgs;

    @NotBlank(message = "公司组织机构代码证不能为空")
    private String certificateCode;

    @NotNull(message = "公司类型不能为空")
    private Integer type;


    private List<String> storeImgs;


    private String partnerMemo;
    //@NotEmpty("合同照片不能为空")
    private List<String> contractImgs;

    private Integer status;

    private String creatorUser;
    @NotBlank(message="请选择业务经理")
    private String manager;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getCorpDescription() {
        return corpDescription;
    }

    public void setCorpDescription(String corpDescription) {
        this.corpDescription = corpDescription;
    }

    public Long getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(Long accountBalance) {
        this.accountBalance = accountBalance;
    }

    public String getContactsName() {
        return contactsName;
    }

    public void setContactsName(String contactsName) {
        this.contactsName = contactsName;
    }

    public String getContactsPhone() {
        return contactsPhone;
    }

    public void setContactsPhone(String contactsPhone) {
        this.contactsPhone = contactsPhone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Integer getProviceId() {
        return proviceId;
    }

    public void setProviceId(Integer proviceId) {
        this.proviceId = proviceId;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public List<String> getCredentialsImgs() {
        return credentialsImgs;
    }

    public void setCredentialsImgs(List<String> credentialsImgs) {
        this.credentialsImgs = credentialsImgs;
    }

    public List<String> getLegalCertImgs() {
        return legalCertImgs;
    }

    public void setLegalCertImgs(List<String> legalCertImgs) {
        this.legalCertImgs = legalCertImgs;
    }

    public String getCertificateCode() {
        return certificateCode;
    }

    public void setCertificateCode(String certificateCode) {
        this.certificateCode = certificateCode;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<String> getStoreImgs() {
        return storeImgs;
    }

    public void setStoreImgs(List<String> storeImgs) {
        this.storeImgs = storeImgs;
    }

    public String getPartnerMemo() {
        return partnerMemo;
    }

    public void setPartnerMemo(String memo) {
        this.partnerMemo = memo;
    }

    public List<String> getContractImgs() {
        return contractImgs;
    }

    public void setContractImgs(List<String> contractImgs) {
        this.contractImgs = contractImgs;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatorUser() {
        return creatorUser;
    }

    public void setCreatorUser(String creatorUser) {
        this.creatorUser = creatorUser;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}
